package com.ikas.autumn.iec104.common.util;

import java.net.InetAddress;
import java.net.UnknownHostException;

/**
 * @author wu.yunfeng
 */
public class IpUtil {
    private IpUtil() {
    }
    public static String getIp(){
        String myIp = "";
        try {
            myIp = InetAddress.getLocalHost().getHostAddress();
            return myIp;
        } catch (UnknownHostException e) {
            e.printStackTrace();
        }
        return null;
    }
}
